home *** CD-ROM | disk | FTP | other *** search
/ PCMania 21 / PCMania CD21.nrg / mod / vpeng.doc < prev    next >
Text File  |  1993-12-01  |  18KB  |  431 lines

  1. Visual Player
  2. Version 2.0, Barcelona, March '93
  3. Programmed by:
  4. Héctor Martínez, Luis Crespo, Luis Ubeda, David López and Angel Trigo.
  5.  
  6.  
  7. Visual Player is a graphic MOD player.
  8. While the music is playing, Visual Player can display the waveform of the
  9. four voices of the MOD, the final waveform, four real volume bars, a
  10. realtime spectrum analyzer and psychedelic lights. This program has been
  11. made to "look" at the music while you listen to it. Everything in Visual
  12. Player is real, everything that is displayed is calculated from the digital
  13. data and not from the score.
  14.  
  15.  
  16. How to use VP:
  17. --------------
  18. To run Visual Player, you must enter:
  19.  
  20.    VP
  21.  
  22. At the DOS command prompt. Optionally, you can use wildcards when specifying
  23. the file name, for example:
  24.  
  25.    VP a*
  26.  
  27. Will play all the MOD files that start with "a".
  28.  
  29.  
  30. Hardware requirements:
  31. ----------------------
  32. VP can play music through the following devices:
  33. - The internal PC speaker
  34. - Sound Blaster
  35. - Sound Blaster Pro (stereo)
  36. - Sound Blaster 16 ASP (stereo, 16 bits, 44.1 KHz)
  37. - Adlib
  38. - Stereo In One
  39. - One or two Digital to Analog Converters (DAC) connected to LPT1 and LPT2.
  40.  
  41. It is very cheap and easy to build a DAC and plug it on the printer port.
  42. A simple circuit design is given below.
  43.  
  44. VP needs a VGA card, and because of the graphic features of the program, the
  45. faster the computer is, the better VP will run. The sound processing speed
  46. depends also very much on the sound device. If you use a sound device without
  47. DMA, such as the internal PC speaker or the DAC in the LPT, it is better not
  48. to use programs and drivers that leave the 386 in virtual mode, like EMM386,
  49. QEMM, 386MAX, etc, because they slow down the computer and they decrease the
  50. sound quality.
  51.  
  52. If the display is refreshed very slowly, you can disable some graphic options
  53. or decrease the sampling frequency. If your screen shows some kind of snow,
  54. it can be because of the psychedelic lights option, so to avoid the snow you
  55. should disable that option.
  56.  
  57. The mouse is completely necessary, because the program works by pushing
  58. buttons, selecting options, moving controls, etc, very much like Windows.
  59.  
  60. VP takes up quite a bit of memory, so if more memory is available to the
  61. program, it will be possible to load greater MOD files.
  62.  
  63.  
  64.  
  65. The Keys:
  66. ---------
  67. Here is a quick keyboard reference for the impatient people:
  68.  
  69.  
  70.         PgUp     : Decrement Pattern
  71.         PgDown   : Increment Pattern
  72.  
  73.         +        : Increment Sampling Frequency
  74.         -        : Decrement Sampling Frequency
  75.  
  76.         1..4     : Toggle Voice
  77.  
  78.         S        : OS Shell
  79.         Enter    : Next MOD
  80.         ESC      : Quit Visual Player
  81.  
  82.         F1       : Help
  83.         F3       : File load window
  84.  
  85.  
  86. The mixing frequency:
  87. ---------------------
  88. The mixing frequency, also called sampling frequency or sampling rate, is
  89. the speed at which the sound is processed. That means that the higher the
  90. sampling frequency, the better the quality of the sound, especially with
  91. the high pitched sounds like charles, bells, etc. A fast machine will allow
  92. a faster sampling frequency, and a sound device with DMA will allow higher
  93. sampling frequencies. If you have a slow machine and run the program with
  94. a high sampling rate, the graphic display will slow down, because the
  95. program will dedicate more time to process the sound.
  96.  
  97.  
  98. The graphic options:
  99. --------------------
  100. Each of the graphic element shown on screen can be enabled or disabled
  101. independently.
  102. To do it, you just have to click the mouse button with the mouse pointer
  103. inside the desired element. For example, if you want to disable the central
  104. oscilloscope, you must click the mouse button with the mouse pointer inside
  105. the central oscilloscope frame. If you click the mouse button again inside
  106. the frame, the oscilloscope gets enabled again.
  107.  
  108.  
  109. The oscilloscopes:
  110. ------------------
  111. The 4 upper oscilloscopes display the waveform of the voices that are being
  112. played, and the central oscilloscope displays the sum of the 4 voices. The
  113. graphs are synchronized with the beginning of the waveform, so that in
  114. most of the cases the waveform will be displayed at the same place.
  115.  
  116. The disposition of the 4 oscilloscopes has changed from previous versions of
  117. the program. In this version, the oscilloscopes labelled as "voice 1" and
  118. "voice 2" at the left side of the screen will sound through the left channel
  119. and the ones labelled as "voice 3" and "voice 4" will sound through the right
  120. channel.
  121.  
  122.  
  123. The volume bars:
  124. ----------------
  125. The volume bars are located at each side of the central oscilloscope, and are
  126. placed so that the voices that sound through the left channel, voices 1 and 2,
  127. are at the left side of the oscilloscope, and the voices that sound through
  128. the right channel, voices 3 and 4, are at the right side of the oscilloscope.
  129.  
  130. Remark that from the point of view of a MOD composer or any other MOD player,
  131. voices 1 and 2 match with 1 and 4, and 3 and 4 with 2 and 3 respectively.
  132.  
  133.  
  134. The spectrum analyzer:
  135. ----------------------
  136. The spectrum analyzer is the most time-consuming feature of the program. It
  137. displays the power of each frequency in the sound. The spectrum analyzer is
  138. implemented with an FFT algorithm with integer arithmetic. The FFT is
  139. calculated from N samples taken from a buffer that sounds during a 1/50th of
  140. second, so that the first spectrum bar shows the power of F=0 Hz, the second
  141. shows F=50 Hz, the third F=100 Hz, the fourth F=150 Hz, and so on,
  142. independently of the mixing frequency.
  143.  
  144. There are 5 different spectrum analyzers. The first one analyzes 128 samples
  145. and displays 64 bars (the other 64 are symmetrical). The second method
  146. analyzes 64 samples and displays 32 bars, so it is faster but less precise
  147. than the first method. The third method analyzes 128 samples and displays 32.
  148. The fourth and the fifth display a stereo spectrum analyzer. The fourth
  149. method analyzes 64 samples for each channel and displays 32 bars for each
  150. channel, and the fifth analyzes 128 samples and displays 32 bars for each
  151. channel. The later method is the one that consumes more CPU time.
  152.  
  153.  
  154. The psychedelic lights:
  155. -----------------------
  156. The 3 circles at the right side of the central oscilloscope are 3 psychedelic
  157. lights. The red light will shine with the bass frequencies, the green one
  158. with the middle frequencies and the yellow one with the high frequencies. To
  159. know the intensity of each light the FFT has to be calculated, the same way
  160. as the spectrum analyzer. So if you disable only one of both options, the FFT
  161. will still be calculated to display the other one.
  162.  
  163.  
  164. The lower button panel:
  165. -----------------------
  166. When VP is loaded, you can only see 6 buttons on screen: 4 buttons to toggle
  167. the voices, one to get help and another one to quit the program. But the
  168. screen does not end at the lower part of the spectrum analyzer. If you move
  169. the mouse down, the whole screen will scroll up, letting you see the lower
  170. part of the program panel. Three different parts can be distinguished there:
  171.  
  172. - at the left side, the name of each instrument of the current MOD file is
  173. shown. This zone will change depending of the selected function on the right
  174. button panel.
  175. - at the center-right part, there is a button panel with the look of a CD or
  176. cassette player panel, with very similar functions to those devices. The
  177. lower buttons on this panel allow you to increment or decrement the current
  178. pattern, and to load the next or previous MOD file.
  179. - at the lower-right part there is a group of buttons which cover all kind of
  180. functions, that are described further:
  181.  
  182.    Load MOD:
  183.    ---------
  184.    Opens a window with a listing of MOD files, and lets you select one to
  185.    load it and play it.
  186.  
  187.    Load FLI:
  188.    ---------
  189.    Opens a window with a listing of FLI files, and lets you load one to XMS
  190.    and animate it while the music sounds. This option is only available on
  191.    the registered version. With the registered version, you can also load a
  192.    FLI file from the command line, by writing something like:
  193.  
  194.        VP modfile /FLI=flifile
  195.  
  196.    In such a case the FLI will be animated while the MOD sounds, until a key
  197.    is pressed, going back to the command line.
  198.  
  199.    SB Mixer:
  200.    ---------
  201.    Opens a window with the SB Pro mixer controls. The changes that you make
  202.    to the mixer never get saved to the configuration file because it is
  203.    supposed that every user has the mixer already configured externally.
  204.  
  205.    ADC Mode:
  206.    ---------
  207.    This feature is independent with all relating to MOD files. When you push
  208.    the ADC mode button, the signal that is analyzed and displayed on the
  209.    oscilloscopes, spectrum analyzer, etc, is the input read from the SB, SB
  210.    Pro or SB 16 ASP.
  211.    So you can use Visual Player to listen to any kind of music and "see" it
  212.    on your screen. If the sound card is an SB, or an SB Pro, the 4 voices will
  213.    contain the same signal, and if the sound card is an SB 16 ASP, voices 1
  214.    and 2 will show the left channel and voices 3 and 4 will show the right
  215.    channel (in the next version, the SB Pro will also analyze in stereo mode).
  216.  
  217.    Play Device:
  218.    ------------
  219.    This window lets you select your sound hardware and the mixing frequency.
  220.  
  221.    Config:
  222.    -------
  223.    Opens a window from which you can configure a lot of options of the
  224.    program. Four different sections can be configured:
  225.  
  226.       - Palette: The program's color palette
  227.       - Spectrum: Lets you select the type of spectrum analyzer, the speed of
  228.         its bars, etc.
  229.       - Psycho: Lets you calibrate the sensibility of each psychedelic light
  230.         to the power of its frequency range.
  231.       - Misc: miscellaneous options.
  232.            - Loop MOD: if this option is activated, the MOD will be played
  233.              again when it finishes.
  234.       - Allow backward jumps: if activated, the program will allow backward
  235.         jumps on the music score. This means that maybe the MOD will never
  236.         end.
  237.       - Stereo mixing: If you are listening to the music with a stereo device,
  238.         the left and right channels can be mixed to achieve a less artificial
  239.         sensation. If this option is enabled, the program will mix a 75% of
  240.         the left channel and a 25% of the right channel to the left channel,
  241.         and vice-versa. This option is especially recommended if you use
  242.         headphones.
  243.       - Defective MOD loading: specifies the behavior in front of a
  244.         defective MOD. The file can be loaded always (ignoring the errors),
  245.         skipped if an error is found, or the program can show an error
  246.         message and ask the user if the file should be loaded or not.
  247.  
  248.    At the bottom right part of the configuration window, there is a button
  249.    that lets you save the configuration, if you have the registered version
  250.    of the program. Remark that the "save" button will save the options of the
  251.    configuration windows and also the whole state of the program, including
  252.    the sound device, the mixing frequency, the graphic options, etc. There is
  253.    a configuration file along with the program, VPGRAY.CFG. If you liked the
  254.    old gray color palette, just copy VPGRAY.CFG to VP.CFG, so that the
  255.    program can read it.
  256.  
  257.    Big Psycho:
  258.    -----------
  259.    Shows a full-screen 256 color psychedelic. This feature is very useful for
  260.    parties, if combined with de ADC mode option ;-). All the usual keys work
  261.    the same way as in the normal mode, including ESC, that exits the program.
  262.    To go back to the normal mode you must just push the a mouse button.
  263.  
  264.    OS Shell:
  265.    ---------
  266.    Loads the command interpreter while the MOD file still sounds. To go back
  267.    to VP, type EXIT on the command line.
  268.  
  269.  
  270.  
  271. New in Version 2.0:
  272. -------------------
  273. - New graphic shell, with mouse support, 3d-buttons, windows-like controls,
  274.   vertical scroll, etc.
  275. - SB 16 ASP support, at 16 bits, stereo and 44.1 KHz.
  276. - The SB and SB Pro do not reverberate any more if an expanded memory
  277.   controller is loaded.
  278. - The spectrum analyzer is more precise in the logarithmic scale.
  279. - New graphic options: stereo spectrum analyzer, psychedelic lights.
  280. - Load window, allowing to select a MOD from a directory.
  281. - SB Pro mixer control.
  282. - FLI animation while playing a MOD file.
  283. - Input signal analyses, with the SB, SB Pro or SB 16 ASP (ADC Mode).
  284. - Help window.
  285. - Configuration window.
  286.  
  287.  
  288.  
  289. Next versions:
  290. --------------
  291. We have tested the program in a great variety of configurations, but due
  292. to the size of the program, some bugs may still exist in this version. The
  293. same way as with version 1.0, we would release version 2.1 to correct the
  294. possible bugs.
  295.  
  296. Also, in the next versions, our program will have:
  297.  
  298. - Juke Box mode, allowing to play various MOD files from a list.
  299. - Total SB 16 ASP mixer control.
  300. - Resident OS Shell mode, allowing to control the state and options of the
  301.   program through a hotkey.
  302. - Efficient XMS usage, to play several MOD files from an OS Shell.
  303. - Packed MOD file format, to save disk space.
  304.  
  305. The latest version of the program can be found in:
  306.  
  307.   - Dracker BBS, FidoNet 2:343/116, SBCNet 14:4500/100, CDNet 94:62/0.
  308.     Tel +34-3-3853393, HST D/S V32bis, 16800 bps.
  309.  
  310.   - ST-Telecos, FidoNet 2:343/108
  311.     Tel +34-3-4017068, V32bis.
  312.  
  313.  
  314. Credits:
  315. --------
  316. Greetings go to:
  317. Juan Carlos Arévalo, Rob de Luna, Alex Miquel, Joffre Heredia, Victor Neira,
  318. Manolo Ruiz Moscoso, Juan Pedro Teruel, David López Vinacua, Hakan Gustavsson
  319. (The CodeBlasters, Sweeden), James Chow (SBNet, Canada), Steve McKnelly, José
  320. María Alvarez, David Sánchez, Xavier Mundó Balcells, Jonne Valtonen, Pedro
  321. Robledo, Carlos López Marco, Patty Brooks, José Luis Oros Cabello, Josep
  322. García Menchón and all the registered users of VP 1.1.
  323.  
  324.  
  325. Shareware:
  326. ----------
  327. Visual Player is distributed as shareware. Registering VP for personal use is
  328. optional, but if you use the program for commercial purposes (for example, to
  329. sell sound cards), you must register inconditionally.
  330.  
  331. If you have obtained VP from a friend, a BBS or similar source, you have an
  332. unregistered version. The unregistered version sounds through the internal PC
  333. speaker from the second MOD file, does not have some features of the program,
  334. the ADC mode only lasts a while, and the program waits for a few seconds
  335. before exiting.
  336.  
  337. When you register, you get:
  338. - A 3'5", diskette with a copy of the latest version of VP registered
  339.   to you, with all the features fully working.
  340. - Free next version registration.
  341. - Due notice of every new version.
  342. - Some MOD files that fit into the program diskette.
  343.  
  344. To register, send a letter to:
  345.  
  346.    Luis Crespo
  347.    P.O. Box 93142
  348.    08080 Barcelona, SPAIN
  349.  
  350. With your full name and address and 3.000 Ptas if you live in Spain, or $30
  351. if you live outside Spain. You can also register of only one version of
  352. Visual Player, by sending 2.000 Ptas or $20.
  353.  
  354. If you don't live in Spain, please don't send us 3.000 pesetas, send us 30
  355. dollars. $30 is more than 3.000 pesetas, but we ask more because of the
  356. difference on the shipping costs. And when we talk about dollars, we mean
  357. U.S.A. dollars, not Canadian or Australian or from any other country. And
  358. please don't send any mail money order, it gives us so much work to change
  359. it to money (a full morning excursion downtown to the central mail building)
  360. that we usually let the order expire and be returned to the sender.
  361.  
  362.  
  363. Copyright/License/Warranty:
  364. ---------------------------
  365. Visual Player must be distributed unmodified and with its full
  366. documentation and files. The registered version must not be distributed.
  367.  
  368. Visual Player is copyright of the authors. The authors allow to: use
  369. software, make copies of it, give copies to anybody and distribute it
  370. through electronic media.
  371.  
  372. It is not allowed to ask for money or donations for any copy or copies of
  373. the program, neither distribute the software and/or documentation with
  374. commercial products, without previous written acknowledgement of the
  375. authors.
  376.  
  377. There is not warranty of any kind, and the authors are not responsible for
  378. any kind of damage that the use of the software may cause. When using this
  379. software, you agree with everything written above.
  380.  
  381.  
  382. How to contact the authors:
  383. ---------------------------
  384. We are waiting for your comments and opinions about our program. Our
  385. electronic addresses are:
  386.  
  387. Luis Crespo: FidoNet 2:343/108.21
  388. David López: FidoNet 2:343/107.989
  389.  
  390. The circuit:
  391. ------------
  392. And here it is the circuit: a Digital to Analog Converter that plugs into
  393. the printer port and to the amplifier. To build it, you will just need 18 1%
  394. resistors, 2 capacitors, a male D-25 connector, and a jack. It is very
  395. important that the resistors have 1% tolerance, because if they have 5% or
  396. more, the thing will sound like hell.
  397.  
  398.  
  399.           Printer Port
  400.  
  401.           signal   pin
  402.                               20k   20k
  403.           D0       2      >───░░░─┬─░░░──0v (GND, pin 20)
  404.                               20k ░ 10k
  405.           D1       3      >───░░░─┤
  406.                               20k ░ 10k
  407.           D2       4      >───░░░─┤
  408.                               20k ░ 10k
  409.           D3       5      >───░░░─┤
  410.                               20k ░ 10k
  411.           D4       6      >───░░░─┤
  412.                               20k ░ 10k
  413.           D5       7      >───░░░─┤
  414.                               20k ░ 10k
  415.           D6       8      >───░░░─┤
  416.                               20k ░ 10k
  417.           D7       9      >───░░░─┤
  418.                               20k ░ 10k  100nF
  419.                                   ├──────┤├─┬──> To Amplifier
  420.                                   │         │
  421.                                   ░ 10k     ┴ 10nF
  422.                                   │         ┬
  423.           GND      20     >───────┼─────────┴──>
  424.                                   0v
  425.  
  426.  
  427. This circuit is an enhancement from Luis Ubeda from the one that came with
  428. Mark J.Cox's ModPlay, so we thank Harry Stox for his original design.
  429.  
  430.  
  431.